<div class="top-bar">
    <h1><?php echo $info; ?></h1>
	<div class="breadcrumbs">
        <a href="#">Trang chủ</a> / <a href="#">Quản lý thông báo</a>
    </div>  
    <div class="select-bar">
        <label><input type="text" name="keyword" id="keyword" placeholder="Nhập thông báo cần tìm..." /></label>
    	<label><input type="button" name="btnSearch" id="btnSearch" value="Tìm kiếm" /></label>
    </div> 
</div>    
    <div class="table">
				<img src="<?php echo base_url('assets/imgs/admin/bg-th-left.gif') ?>" width="8" height="7" alt="" class="left" />
				<img src="<?php echo base_url('assets/imgs/admin/bg-th-right.gif') ?>" width="7" height="7" alt="" class="right" />
				<table class="listing" cellpadding="0" cellspacing="0">
				    <tr>
						<th class="first" width="177" style="text-align: center;">Tiêu đề</th>					
                        <th>Hiển thị</th>	
                        <th class="last"></th>
					</tr>				
                    <?php
                        
                        foreach($content as $row)
                        {
                            $tenthongbao = $row['tenthongbao'];
                            $id = $row['id'];
                            $hienthi = $row['hienthi'];
                            echo "<tr>";
                            echo "<td><a href='". base_url('adcp/quanlythongbao/xemthongbao?id=' . $id) ."'>$tenthongbao</a></td>";
                            if($hienthi)
                            {
                                echo "<td><input type='checkbox' id='chk-$id' class='chk-hienthi-thongbao' checked='checked' /></td>";
                            }
                            else
                            {
                                echo "<td><input type='checkbox' id='chk-$id' class='chk-hienthi-$tenthongbao' /></td>";
                            }
                            echo "<td><a href='". base_url('adcp/quanlythongbao/xoathongbao?id='. $id) ."'><img src='". base_url('assets/imgs/admin/hr.gif') ."' width='16' title='Xóa thông báo' height='16' alt='www.nhakhoatoanmy.vn' /></a></td>";
                            echo "</tr>";
                        }
                    ?>
				</table>
	        <p>&nbsp;</p>
		  </div>
